package com.yc.backstage.service.serviceImpl;

import com.yc.backstage.entity.SysDictData;
import com.yc.backstage.mapper.SysDictDataMapper;
import com.yc.backstage.service.SysDictDataService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
* @Classname SysDictDataController
* @Description
* @Version 1.0.0
* @Date 2022-08-23 11:49:19
* @Created by Mikechen
*/
@Service
public class SysDictDataServiceImpl extends ServiceImpl<SysDictDataMapper, SysDictData> implements SysDictDataService {
    @Autowired
    private SysDictDataMapper sysDictDataMapper;
    /**
     * 根据字典id查询字典数据
     */
    @Override
    public  List<SysDictData> selectDictDataById(Long dictCode) {
        return sysDictDataMapper.selectDictDataById(dictCode);
    }

    /**
     * 根据字典type查询字典数据
     */
    @Override
    public List<SysDictData> selectDictDataByType(String dictType) {
        return sysDictDataMapper.selectDictDataByType(dictType);
    }
}
